function [ y ] = hc_eqconstr( x )
%HC_EQCONSTR Implements equality constraints on hanging chain problem
%   Fixes the first and last mass points

zr = reshape(x, length(x) / 2, 2);

fix1 = [1; 1];
fix2 = [10; 10];

y = [zr(1, :)' - fix1; zr(end, :)' - fix2];

end

